package widget.common.utils
{
	public class DateTransForm
	{
		public function DateTransForm()
		{
		}
		/**
		 * 
		 * @param date  单位 ns
		 * @return 
		 * 
		 */		
		public static function transform(date:int):String
		{
			var tempTime:int = date/1000;
			var tempString:String;
			var tempH:int = tempTime/3600;
			if(tempH < 10)
			{
				tempString = "0";
			}
			tempString += tempH + ":";
			
			tempTime = tempTime % 3600;
			
			var tempN:int = tempTime/60;
			
			if(tempN < 10)
			{
				tempString += "0";
			}
			tempString += tempN + ":";
			
			tempTime = tempTime % 60;
			
			var tempS:int = tempTime;
			
			if(tempS < 10)
			{
				tempString += "0";
			}
			tempString += tempS;
			return tempString;
		}
	}
}